package encapsulation;



public class CarDemo {
	public static void main(String[] args) {
		// this is how we use the constructor
		Car focus = new Car("Ford", "Focus", 2014, "Blue");
		// if we accelerate with some crazy number but the car will run only with max.speed 140.
		focus.accelerate(6789877);
		// if i want to change the color of the car after it is constructed.
		
		focus.changeColor("red");
		
		System.out.println("current Speed =" + focus.getCurrentSpeed());
System.out.println("Make of the car =" + focus.getMake());
System.out.println("Model of the car =" + focus.getModel());

System.out.println("Color of the car =" + focus.getColor());
	}
}
